<!DOCTYPE html>
<!--suppress ALL-->
<html lang="en"
      xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.thymeleaf.org"
      layout:decorator="layout/master">

<body layout:fragment="content">
<link rel="stylesheet" type="text/css" href="/css/mui.min.css">
<script src="/js/layer/layer.js"></script>
<div th:replace="layout/layout::center_zy_search_top_box('绑卡')"></div>
<!-- 内容框 -->
<div class="zy_module-content">
    <div class="vip_user_addr_new">
        <div class="box dizhi_new">
            <form id="form1">
                <div class="txt">
                    <h5>绑定支付宝</h5>
                    <h2><input type="text" id="name" th:value="${pddUserBankcards.name}" placeholder="姓名"></h2>
                    <h2><input type="text" id="number" th:value="${pddUserBankcards.number}" placeholder="账号"></h2>
                </div>
                <button type="button" onclick="bind()">保存绑卡信息</button>
            </form>
        </div>
    </div>
</div>
<script src="/js/layer/layer.js"></script>
<script>
    function bind() {
        $.post("/ajax/center/bind", {name: $("#name").val(), number: $("#number").val()}, function (d) {
            if (d.code == 0) {
                layer.msg("保存成功");
            }
        });
    }
</script>
</body>

</html>